package com.baiwang.bwbaselib.utils;

import android.util.Log;

public class FreeLog {
	
	
	public static int v(String tag, String msg, Object... args) {
		String content = args == null ? msg : String.format(msg, args);
		
        return Log.v(tag, content);
    }

    
    public static int v(String tag, String msg, Throwable tr, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        
        return Log.v(tag, content, tr);
    }

    public static int d(String tag, String msg, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.d(tag, content);
    }

    public static int d(String tag, String msg, Throwable tr, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.d(tag, content, tr);
    }

    public static int i(String tag, String msg, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.i(tag, content);
    }

    public static int i(String tag, String msg, Throwable tr, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.i(tag, content, tr);
    }

    
    public static int w(String tag, String msg, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.w(tag, content);
    }

    public static int w(String tag, String msg, Throwable tr, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.w(tag, content, tr);
    }

    public static int e(String tag, String msg, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.e(tag, content);
    }

    public static int e(String tag, String msg, Throwable tr, Object... args) {
    	String content = args == null ? msg : String.format(msg, args);
        return Log.e(tag, content, tr);
    }

}
